export default {
    component: 'jzlEditor',
    icon: 'fa fa-font',
    name: '按钮',

    box_style: {                  // box
        _node: 'div',
        _ss: {},
        header: {
            _node: 'div',
            _ss: {},

            title: {
                _node: 'text',
                _ss: {},
                text: ''
            },
            icon: {
                _node: 'icon',
                _ss: {},
                icon: '',
                img: '',
            },
            more: {
                _node: 'text',
                _ss: {},
                text: '更多'      // 文字
            },
            moreIcon: {
                _node: 'icon',
                _ss: {},
                icon: '',
                img: '',
            },
        }
    },

    ele_style: {
        _ss: {},
        _sh: {},
        _rh: false
    },
    vars: [],
    data_fieldsmap: {        // 组件需要字段与接口数据字段的映射

    },
    data_schema: {       // 组件需要的字段
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "数据",
        "description": "text description",
        "type": "object",
        "properties": {
            "id": {
                "description": "The unique identifier for a book",
                "type": "integer",
                "minimum": 1
            },
            "name": {
                "type": "string",
                "pattern": "^#([0-9a-fA-F]{6}$",
                "maxLength": 6,
                "minLength": 6
            },
            "price": {
                "type": "number",
                "multipleOf": 0.5,
                "maximum": 12.5,
                "exclusiveMaximum": true,
                "minimum": 2.5,
                "exclusiveMinimum": true
            },
            "tags": {
                "type": "array",
                "items": {
                    "properties": {
                        "name": {
                            "type": "string",
                            "pattern": "^#([0-9a-fA-F]{6}$",
                            "maxLength": 6,
                            "minLength": 6
                        },
                        "age": {
                            "type": "number",
                            "multipleOf": 0.5,
                            "maximum": 12.5,
                            "exclusiveMaximum": true,
                            "minimum": 2.5,
                            "exclusiveMinimum": true
                        }
                    }
                },
                "minItems": 1,
                "maxItems": 5,
                "uniqueItems": true
            }
        }
    },
    data_type: 'static',    // static | dync
    data_dync: {
        form_code: '',
        form_view_code: '',
        report_code: '',
        url: ''
    },
    data_static: {}
}
